package com.truckdispatching.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.truckdispatching.R;

/**
 * 注册完成界面
 * @author Lee
 * @date 2013-4-30
 */
public class RegisterCompleteActivity extends BaseActivity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.register_complete_activity);
		
		String mobile = getIntent().getExtras().getString("mobile");
		TextView username=  (TextView)findViewById(R.id.tv_name);
		username.setText("用户名："+mobile);
		TextView password=  (TextView)findViewById(R.id.tv_password);
		password.setText("密    码："+mobile.substring(5));
		
		Button btnStart = (Button)findViewById(R.id.btn_start);
		btnStart.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(RegisterCompleteActivity.this,MainActivity.class);
				startActivity(intent);
				finish();
			}
		});
	}
}
